#pragma once
 
class WPENGIN_API CBoundRect
{
public:
	CBoundRect() {}
	CBoundRect(float x, float y, float r);
	CBoundRect(float x1, float y1, float x2,float y2);
	void SetBoundRect(float x1,float y1,float x2,float y2);
	void 	   SetBoundRect(float x, float y, float r);
	~CBoundRect(void);
	void Render(const bool bIsSameColor=true);
	bool IsPointIn(int x, int y);
	bool IsCross(const CBoundRect & rt) ;
	 
	D3DXVECTOR2  m_min,m_max;
};

